home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000016_cliff_Wed May 17 16:38:57 1995.msg < prev    next >
Text File  |  1995-09-18  |  18KB  |  418 lines

  1. To: /usr/icon/icon-group/mail
  2. Subject: Icon-group FAQ
  3.  
  4.  
  5.     Frequently Asked Questions About The Icon Programming Language
  6.  
  7. last updated: 01/18/95
  8.  
  9. This FAQ answers various questions about the Icon programming language,
  10. ranging from what it is to how you can get it.  This first version of the
  11. Icon FAQ is devoted to the issues that are likely to be of most interest
  12. to persons who don't know anything about Icon or who are relatively
  13. new to it.  Future versions of this FAQ will answer questions from
  14. more experienced Icon programmers.
  15.  
  16. This FAQ is written by Ralph Griswold with help from Cliff Hathaway,
  17. Clint Jeffery, and Gregg Townsend.
  18.  
  19. Section I -- General Questions:
  20.  
  21. I.1.   What is Icon?
  22. I.2.   What is Icon good for?
  23. I.3.   Where did Icon come from?
  24. I.4.   What does "Icon" stand for?
  25. I.5.   On what computers does Icon run?
  26. I.6.   Who did all these implementations?
  27. I.7.   Are there other implementations in the works?
  28. I.8.   Are there different versions of Icon?
  29. I.9.   Which implementations of Icon have graphics/window capabilities?
  30. I.10.  Where can I get Icon?
  31. I.11.  Where can I get documentation about Icon?
  32. I.12.  How do I get started with Icon?
  33. I.13.  What is the Icon Project?
  34. I.14.  Where can I find examples of Icon programs?
  35. I.15.  What is Idol?
  36. I.16.  How often is material in Icon's FTP area updated?
  37. I.17.  How do I stay up to date with what's going on with Icon?
  38. I.18.  Why isn't the Icon Newsletter available electronically?
  39. I.19.  Is there a users' group for Icon?
  40. I.20.  How do I get technical support?
  41. I.21.  Is there an optimizing compiler for Icon?
  42. I.22.  What do I need to run the interpreter?
  43. I.23.  What do I need to run the compiler?
  44. I.24.  Can I build my own implementation of Icon for a new platform?
  45.  
  46. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  47.  
  48. I.1.   What is Icon?
  49.  
  50. Icon is a very high level general-purpose programming language with
  51. extensive features for processing strings (text) and data structures.
  52. Icon is an imperative, procedural language with a syntax that is
  53. reminiscent of C and Pascal, but its semantics are at a much higher level
  54. than those languages.
  55.  
  56. Icon has a novel expression-evaluation mechanism that integrates goal-
  57. directed evaluation and backtracking with conventional control structures.
  58. It has a string scanning facility for pattern matching that avoids 
  59. the tedious details usually associated with analyzing strings. Icon's
  60. built-in data structures include sets and tables with associative lookup,
  61. lists that can be used as vectors or stacks and queues, and records.
  62.  
  63. Icon is a strongly, though not statically, typed language. It provides
  64. transparent automatic type conversion. For example, if an integer is
  65. used in an operation that requires a string, the integer is automatically
  66. converted to a string.
  67.  
  68. Several implementations of Icon have high-level graphics facilities with
  69. an easily programmed window interface.
  70.  
  71. Icon manages storage automatically. Objects are created as needed during
  72. program execution and space is reclaimed by garbage collection as needed.
  73. The sizes of strings and data structures are limited only by the amount
  74. of available memory.
  75.  
  76.  
  77. I.2.   What is Icon good for?
  78.  
  79. As a general-purpose programming language with a large computational
  80. repertoire, Icon can be used for most programming tasks.  It's at
  81. its best when used as a prototyping tool, for processing text, and when
  82. ease of programming is needed for experimental and research applications.
  83.  
  84. Paradoxically, Icon is used most often for short, one-shot tasks and for very
  85. complex applications.
  86.  
  87. Icon is designed to make programming easy; it emphasizes the value of
  88. programmer's time and the importance of getting programs to work quickly.
  89. This explains its usefulness for prototyping as well as the apparent
  90. paradox of applicability to simple and complex applications.
  91.  
  92.  
  93. I.3.   Where did Icon come from?
  94.  
  95. Icon is the latest in a series of high-level programming languages designed
  96. to facilitate programming tasks involving strings and structures. The
  97. original language, SNOBOL, was developed at Bell Telephone Laboratories
  98. in the early 60s.  SNOBOL evolved into SNOBOL4, which is still in use.
  99. Subsequent languages were developed at The University of Arizona with
  100. support from the National Science Foundation.
  101.  
  102. Incidentally, Icon bears little physical resemblance to SNOBOL4, although
  103. it has similar objectives and many similar capabilities.
  104.  
  105.  
  106. I.4.   What does "Icon" stand for?
  107.  
  108. The name Icon (which is not spelled ICON) is not an acronym nor does it
  109. stand for anything in particular, although the word iconoclastic was
  110. mentioned at the time the name was chosen.  The name predates the now
  111. common use of "icon" to refer to small images used in graphical user
  112. interfaces.  This latter usage sometimes causes persons to think mistakenly
  113. that Icon is designed to create or manipulate icons.  There's not much
  114. that can be done about this.
  115.  
  116.  
  117. I.5.   On what computers does Icon run?
  118.  
  119. The implementation of Icon is highly portable. There are versions for
  120. the Acorn Archimedes, the Amiga, the Atari ST, IBM CMS and MVS, the
  121. Macintosh, MS-DOS, OS/2, UNIX, and VMS.  Nearly 60 UNIX platforms are
  122. supported.
  123.  
  124. Icon programs also are highly portable. Most Icon programs can run on
  125. any platform that supports Icon.
  126.  
  127.  
  128. I.6.   Who did all these implementations?
  129.  
  130. The original implementation of Icon for UNIX was done at The University
  131. of Arizona.  Most of the other implementations originally were done
  132. by volunteers scattered around the world.
  133.  
  134. It's worth noting that all implementations of Icon are based on the same
  135. source code, which is written in C.  This contributes to the portability 
  136. of Icon itself, as well as to the portability of programs written in Icon.
  137.  
  138.  
  139. I.7.   Are there other implementations in the works?
  140.  
  141. Yes, work is constantly underway on implementations of Icon for new
  142. platforms.  Present projects include Windows NT, Win32, and a new
  143. Macintosh implementation.
  144.  
  145.  
  146. I.8.   Are there different versions of Icon?
  147.  
  148. Icon has evolved through a series of versions with improved and extended
  149. capabilities.  The latest major version number is 9.  This version
  150. includes recent changes and additions, notably in the graphics area.
  151. As of this writing, the MS-DOS, UNIX, and VMS implementations are
  152. are up to 9.0.  Other implementations that presently are at Version
  153. 8.10 are being converted to 9.0.  There are a few platforms still at 8.0.
  154. Almost all programs that run under 8.0 or 8.10 and that do not use graphics
  155. will run under 9.0.  Programs that use graphics require conversion
  156. to 9.0.  The 9.0 release provides conversion aids.
  157.  
  158.  
  159. I.9.   Which implementations of Icon have graphics/window capabilities?
  160.  
  161. Icon's graphics facilities presently are supported on the OS/2, UNIX, and
  162. VMS implementations.  The UNIX and VMS implementations use X, while the
  163. OS/2 implementation uses Presentation Manager.
  164.  
  165. The NT and Win32 implementations that are in progress will support Icon's
  166. graphics facilities.  A Macintosh implementation to support graphics also
  167. is in the works.
  168.  
  169.  
  170. I.10.  Where can I get Icon?
  171.  
  172. Most implementations of Icon are available via anonymous FTP to
  173. ftp.cs.arizona.edu in /icon.  The directory /icon/binaries contains executable
  174. versions of Icon for several systems, including several popular UNIX
  175. platforms.  The directory /icon/packages contains source code, test programs,
  176. related material, and, most cases, executable binaries as well.
  177. All directories have READ.ME files with additional information.
  178.  
  179. Icon also is available on a variety of physical media for prices ranging
  180. from $15 to $50.  Contact:
  181.  
  182.     Icon Project
  183.     Department of Computer Science
  184.     The University of Arizona
  185.     Tucson, AZ   85721
  186.  
  187.     520-621-6613 (voice)
  188.     520-621-4246 (fax)
  189.  
  190.     icon-orders@cs.arizona.edu (e-mail)
  191.  
  192. Request a copy of the Icon Newsletter for a listing of what's available
  193. and what the prices are.
  194.  
  195. Purchases can be made by credit card (MasterCard, Visa, or Discover) or
  196. by check drawn on a bank with a branch in the United States and made
  197. payable to The University of Arizona.
  198.  
  199.  
  200. I.11.  Where can I get documentation about Icon?
  201.  
  202. The definitive work on Icon is the book
  203.  
  204.     The Icon Programming Language, Griswold and Griswold,
  205.     Prentice-Hall, 1990, 368 pages, ISBN 0-13-447889-4.
  206.  
  207. This book is a complete description and reference manual for Version 8 of
  208. Icon.
  209.  
  210. There also is a book on the implementation of Icon:
  211.  
  212.     The Implementation of the Icon Programming Language, Griswold
  213.     and Griswold, Princeton University Press, 1986, 336 pages, ISBN
  214.     0-691-08431-9.
  215.  
  216. This book describes the implementation as of Version 6 of Icon.  Although
  217. the implementation has changed somewhat since then, the basic structure
  218. is the same.  Technical reports describing recent implementation changes
  219. are included with books purchased from the Icon Project.
  220.  
  221. These books are available from the Icon Project or from any book store
  222. that handles special orders.
  223.  
  224. Additional documentation is available via FTP in /icon/doc.  Notable
  225. documents are:
  226.  
  227.     TR 90-6      an overview of Icon
  228.     IPD255      graphics/window facilities
  229.     IPD236      changes between Versions 8.0 and 9.0
  230.  
  231. There are manual pages for UNIX systems, but there is no complete
  232. on-line documentation.  
  233.     
  234. The Icon Newsletter, which includes topical material about Icon and
  235. a list of material available from the Icon Project, is published three
  236. times a year.  Subscriptions are free; contact the Icon Project to get
  237. a copy of the latest Newsletter and to be put on the mailing list.
  238.  
  239. The Icon Analyst, a technically oriented newsletter that features articles
  240. about programming, is published six times a year.  There is a subscription
  241. fee for the Analyst.  A sample copy is available on request.
  242.  
  243. All back issues of both newsletters are available for purchase.
  244.  
  245.  
  246. I.12.  How do I get started with Icon?
  247.  
  248. If you're a newcomer to Icon, get the package for your platform (by
  249. FTP, cd /icon/packages and get READ.ME for more information).  This
  250. will give you documentation concerning running Icon on your platform,
  251. test programs and other material.  If the package you pick up does
  252. not contain executable files, see /icon/binaries.  You also may want
  253. to get the overview of Icon:  /icon/doc/tr90-6.doc or tr90-6.ps.Z.
  254. You'll find pointers to other documents of interest in the package
  255. you pick up.
  256.  
  257. I.13.  What is the Icon Project?
  258.  
  259. The Icon Project is a name used by the group at The University of
  260. Arizona that develops, implements, distributes, and supports the
  261. Icon programming language.
  262.  
  263. The Icon Project is not commercial organization.  It derives support
  264. from The University of Arizona, grants, and (primarily) revenue from
  265. the sale of program material and documentation.
  266.  
  267.  
  268. I.14.  Where can I find examples of Icon programs?
  269.  
  270. There is a large program library for Icon.  It is an excellent resource
  271. for both new and experienced programmers, containing numerous examples of
  272. how to do things with Icon.  The library also provides many useful
  273. applications, as well as hundreds of procedures that supplement Icon's
  274. built-in repertoire.
  275.  
  276. The library, like other Icon material, is available via FTP (cd /icon/library)
  277. and on physical media from the Icon Project.
  278.  
  279.  
  280. I.15.  What is Idol?
  281.  
  282. Idol is an object-oriented extension to Icon that provides concepts such
  283. as classes and multiple inheritance.  Idol is written in Idol and is
  284. distributed as part of the Icon program library.  Idol runs on almost all
  285. of the platforms that Icon runs on.
  286.  
  287. Additional Idol information is available from Clint Jeffery,
  288. jeffery@ringer.cs.utsa.edu.
  289.  
  290.  
  291. I.16.  How often is material in Icon's FTP area updated?
  292.  
  293. New material is added when it's available.  Established implementations
  294. usually are only updated when there's a major new release.  This typically
  295. is every year or two.  The Icon program library is updated on a similar
  296. schedule.
  297.  
  298.  
  299. I.17.  How do I stay up to date with what's going on with Icon?
  300.  
  301. The best way to find out about developments related to Icon is to
  302. subscribe to the Icon Newsletter.  It's free, but it is distributed
  303. only by postal mail, so you must provide a mailing address.
  304.  
  305. You can stay up to date on the source code, which is changed much more
  306. frequently than the version on FTP is updated, by subscribing to the
  307. source update service, which provides a new version about three times
  308. a year.
  309.  
  310. There also is a subscription service for updates to the Icon program
  311. library, which provides new material three or four times a year.
  312.  
  313. See the Icon Newsletter for information about subscribing to these
  314. services.
  315.  
  316.  
  317. I.18.  Why isn't the Icon Newsletter available electronically?
  318.  
  319. The Icon Newsletter contains diagrams, images, and other material that
  320. cannot be rendered in plain ASCII text.  The Newsletter is prepared with
  321. a desktop publishing system that produces PostScript, but the files are
  322. enormous -- too large to include in the Icon FTP area.  Selected articles
  323. from the Newsletter are available by FTP in /icon/doc/articles.
  324.  
  325.  
  326. I.19.  Is there a users' group for Icon?
  327.  
  328. There is no official Icon users' group.  The Icon Project maintains an
  329. electronic mailing list, icon-group@cs.arizona.edu.  Mail sent to this address
  330. is forwarded to subscribers.  To subscribe (or unsubscribe), send a
  331. message to icon-group-request@cs.arizona.edu.
  332.  
  333. There is a gateway between icon-group and comp.lang.icon, an unmoderated
  334. newsgroup for discussing issues related to Icon.  The gateway, which
  335. exchanges messages between the two systems, is imperfect and not under
  336. the control of the Icon Project.
  337.  
  338. The newsgroup generally provides faster response than the mailing list.
  339. The newsgroup is less intrusive, but it sometimes suffers from inappropriate
  340. postings.  The Icon Project usually sends messages of interest to the
  341. Icon community to icon-group.
  342.  
  343. I.20.  How do I get technical support?
  344.  
  345. Free technical support is available from the Icon Project via electronic
  346. mail to icon-project@cs.arizona.edu or by fax, telephone, and postal mail
  347. to the Icon Project as listed above.
  348.  
  349. Since the Icon Project is not a commercial organization, support is limited
  350. to what it can provide with its available resources.  If the Icon Project
  351. cannot help with a problem (such as for a platform it doesn't have), it will
  352. attempt to provide a contact with someone who can help.
  353.  
  354.  
  355. I.21.  Is there an optimizing compiler for Icon?
  356.  
  357. Yes.  The original implementation was an interpreter.  An optimizing
  358. compiler was added a few years ago.  The interpreter and compiler are
  359. largely source-language compatible.
  360.  
  361. The interpreter is used by most Icon programmers because it gets into
  362. execution quickly and runs fast enough for most applications.  The compiler
  363. is best suited for applications that require the fastest possible
  364. execution time.  In this case, it's generally best to develop the program
  365. using the interpreter and then compile the final result for production use.
  366.  
  367.  
  368. I.22.  What do I need to run the interpreter?
  369.  
  370. The Icon interpreter will run on most computers.  It requires a reasonable
  371. amount of memory, however.   Under MS-DOS, the Icon interpreter needs
  372. 500KB of application RAM to work well.
  373.  
  374.  
  375. I.23.  What do I need to run the compiler?
  376.  
  377. The Icon compiler is another matter.  It requires a C compiler, a fast
  378. CPU for tolerable compilation times, a considerable amount of disk
  379. space, and a lot of memory -- at least several megabytes.
  380.  
  381. The Icon compiler generates C code, which must then be compiled to
  382. produce an executable program.  The flexibility that Icon provides to
  383. programmers makes compilation technically difficult and the process
  384. requires a large amount of memory.  The C code it produces is voluminous
  385. and stresses the most robust C compilers.
  386.  
  387. Generally speaking, the Icon compiler is practical for platforms in
  388. the workstation class but not for most personal computers.  Although
  389. the compiler can be built and made to run on 286 platforms running
  390. standard MS-DOS, only trivially small programs can be compiled.  In
  391. principle, the Icon compiler is practical on MS-DOS 386/486 platforms
  392. with extended memory, but the limited availability of suitable 32-bit C
  393. compilers for this environment has discouraged the use of the Icon compiler
  394. on such platforms.
  395.  
  396.  
  397. I.24.  Can I build my own implementation of Icon for a new platform?
  398.  
  399. As mentioned above, Icon is written in C and the source code is available
  400. via FTP and the Icon Project.  The existing implementations are testament
  401. to its portability.  (a small amount of assembly-language code is
  402. required for a context switch, but this is only needed for an optional
  403. feature -- co-expressions -- that can be disabled without affecting most
  404. of Icon.)
  405.  
  406. New ports involve platform-specific configuration parameters and, in
  407. some cases, platform-specific code.  The feasibility of a new port and
  408. the amount of work it may take depends on the platform -- its architecture,
  409. its C compiler, and its environment.
  410.  
  411. Ports to new UNIX platforms generally are easy, although novel architecture
  412. may present problems.  Ports to new operating systems generally are
  413. more difficult, especially if Icon's graphics facilities are implemented.
  414.  
  415. The Icon Project provides what help it can with new ports.  In return, it
  416. asks that code related to the port to be returned to the Icon Project for
  417. inclusion in future versions of the source code for Icon.  This makes the
  418. new port available to others as well as to the porter when Icon is updated.